const columns ={
  //基本信息
  baseInfoColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    { title: '项目名称', dataIndex: 'itemName',width: 130, ellipsis: true },
    { title: '次数', dataIndex: 'useTimes', width: 100, ellipsis: true},
    { title: '主治医生', dataIndex: 'mainDr', width: 100,ellipsis: true },
    { title: '医生助理', dataIndex: 'treatDr',width: 100, ellipsis: true },
    { title: '美容师', dataIndex: 'beautyDr', width: 90, ellipsis: true },
    { title: '麻醉师', dataIndex: 'hocusDr', width: 90,ellipsis: true },
    { title: '护士', dataIndex: 'nurse', width: 90, ellipsis: true },
    { title: '状态', dataIndex: 'state', width: 80, ellipsis: true },
  ],
  //门诊处方
  outpatientRecipeColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50 },
    { title: '处方号',
      dataIndex: 'recipelId',
      width: 150,
      customRender: (text, record, index) => {
        return {
          children: text,
          attrs: {
            rowSpan: record.group,
          }
        }
      },
      ellipsis: true
    },
    { title: '药品', dataIndex: 'drugName', width: 125, ellipsis: true},
    { title: '类型', dataIndex: 'type', width: 75,ellipsis: true },
    { title: '规格', dataIndex: 'spec',width: 85, ellipsis: true },
    { title: '数量', dataIndex: 'qty', width: 65, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 65,ellipsis: true },
    { title: '用法', dataIndex: 'useWays', width: 70, ellipsis: true },
    { title: '用量/次', dataIndex: 'dosage', width: 80, ellipsis: true },
    { title: '次数/天', dataIndex: 'dayTimes', width: 75, ellipsis: true },
    { title: '天数', dataIndex: 'days', width: 65, ellipsis: true },
    { title: '操作',
      scopedSlots: { customRender: 'action' } ,
      width: 60
    }
  ],
  //模板处方
  templateRecipeColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    { title: '组号', dataIndex: 'groupId',width: 50, ellipsis: true },
    { title: '药品', dataIndex: 'drugName', width: 90, ellipsis: true},
    { title: '规格', dataIndex: 'spec',width: 65, ellipsis: true },
    { title: '安全剂量', dataIndex: 'dose', width: 80, ellipsis: true },
    { title: '总数量', dataIndex: 'drugQty', width: 60, ellipsis: true },
    // { title: '总单位', dataIndex: 'doseUnit', width: 60,ellipsis: true },
    { title: '每次剂量', dataIndex: 'nowDose', width: 75, ellipsis: true },
    { title: '剂量单位', dataIndex: 'doseUnit', width: 75, ellipsis: true },
    { title: '单次数量', dataIndex: 'qty', width: 75, ellipsis: true },
    { title: '每次单位', dataIndex: 'unit', width: 75, ellipsis: true },
    { title: '用法', dataIndex: 'useWays', width: 65, ellipsis: true },
    { title: '使用频率', dataIndex: 'frequency', width: 75, ellipsis: true },
    { title: '金额', dataIndex: 'amt', width: 70,ellipsis: true },
  ],
  //门诊录入
  insertRecipeColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    {
      title: '药品信息',
      children: [
        { title: '组号', dataIndex: 'groupId',width: 60, ellipsis: true },
        { title: '药品', dataIndex: 'drugName', width: 125, ellipsis: true},
        { title: '规格', dataIndex: 'spec', width: 90,ellipsis: true },
        { title: '安全剂量', dataIndex: 'dose', width: 75,ellipsis: true }
      ],
    },
    {
      title: '总量',
      children: [
        { title: '数量', dataIndex: 'drugQty', width: 65, ellipsis: true },
        // { title: '单位', dataIndex: 'doseUnit', width: 65,ellipsis: true },
      ],
    },
    {
      title: '单次用量',
      children: [
        { title: '每次剂量', dataIndex: 'nowDose', width: 70, ellipsis: true },
        { title: '剂量单位', dataIndex: 'doseUnit', width: 70, ellipsis: true },
        { title: '数量', dataIndex: 'qty', width: 65, ellipsis: true },
        { title: '单位', dataIndex: 'unit', width: 65,ellipsis: true },
      ],
    },
    {
      title: '用法',
      children: [
        { title: '用法', dataIndex: 'useWays', width: 70, ellipsis: true },
        { title: '使用频率', dataIndex: 'frequency', width: 70, ellipsis: true },
        { title: '备注', dataIndex: 'remark', width: 65, ellipsis: true },
      ],
    },
    { title: '金额', dataIndex: 'amt',width: 60 }
  ],
  //医嘱情况
  doctorAdviceSituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50 },
    { title: '组号', dataIndex: 'groupId',scopedSlots: { customRender: 'groupId' } ,width: 80, ellipsis: true },
    { title: '临/嘱', dataIndex: 'ftype',scopedSlots: { customRender: 'ftype' } ,width: 90,ellipsis: true},
    { title: '医嘱', dataIndex: 'itemName', width: 100,ellipsis: true },
    { title: '规格', dataIndex: 'spec',width: 115, ellipsis: true },
    { title: '下达日期', dataIndex: 'startDate', width: 115, ellipsis: true },
    { title: '首次用量', dataIndex: 'firstDosage',scopedSlots: { customRender: 'firstDosage' } , width: 90,ellipsis: true },
    { title: '每次用量', dataIndex: 'dosage',scopedSlots: { customRender: 'dosage' } , width: 90, ellipsis: true },
    { title: '金额', dataIndex: 'price', width: 130,scopedSlots: { customRender: 'price' } , ellipsis: true },
    { title: '用量/单位', dataIndex: 'unit', width: 100, ellipsis: true },
    { title: '用药/频率', dataIndex: 'useTimes',scopedSlots: { customRender: 'useTimes' } , width: 145, ellipsis: true },
    { title: '用药途径', dataIndex: 'useWays',scopedSlots: { customRender: 'useWays' } , width: 135, ellipsis: true }
  ],
  //手术管理
  SurgerySituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1},
    { title: '创建时间 ', dataIndex: 'recordDate', ellipsis: true },
    { title: '治疗项目名称', dataIndex: 'itemName',ellipsis: true},
    { title: '手术级别', dataIndex: 'operationLevel', ellipsis: true },
    { title: '医生助理', dataIndex: 'assistantDr', ellipsis: true },
    { title: '切口/愈合', dataIndex: 'cut' , ellipsis: true },
    { title: '择期手术 ', dataIndex: 'otherOperation', ellipsis: true },
    { title: ' 麻醉方式全麻', dataIndex: 'hocusMode' , ellipsis: true },
    { title: '麻醉医生', dataIndex: 'anesthetist', ellipsis: true }
  ],

  //物料明细
  materialDetailsColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50,fixed:'left' },
    { title: '产品类型', dataIndex: 'itemName', ellipsis: true },
    { title: '产品名称', dataIndex: 'useTimes', ellipsis: true},
    { title: '数量', dataIndex: 'mainDr', width: 70,ellipsis: true },
    { title: '单位', dataIndex: 'treatDr',width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'beautyDr', width: 90, ellipsis: true },
    { title: '价格', dataIndex: 'circuitNurse', width: 80,ellipsis: true },
    { title: '操作', dataIndex: 'nurse', width: 80, ellipsis: true },
  ],
  //医嘱情况-执行信息-产品信息
  productInfoColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50 },
    { title: '产品名称', dataIndex: 'beautyDr', width: 120, ellipsis: true },
    { title: '数量', dataIndex: 'circuitNurse', width: 85,ellipsis: true },
    { title: '单位', dataIndex: 'nurse', width: 85, ellipsis: true },
    { title: '规格', dataIndex: 'state1', width: 100, ellipsis: true },
  ],
  //医嘱情况-常用医嘱列表
  commonlyDoctorAdviceTableColumns: [
    { title: '拼音码', dataIndex: 'pyCode', width: 80, ellipsis: true },
    { title: '项目名称', dataIndex: 'itemName', width: 85,ellipsis: true },
    { title: '类别', dataIndex: 'itemId', width: 80, ellipsis: true },
    { title: '数量', dataIndex: 'qty', width: 80, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 70, ellipsis: true },
    { title: '价格', dataIndex: 'price', width: 120, ellipsis: true },
    { title: '创建时间', dataIndex: 'recordDate', width: 140, ellipsis: true },
    { title: '备注', dataIndex: 'remark', width: 100, ellipsis: true },
  ],
  //医嘱情况-医嘱列表
  DoctorAdviceAndDrugsTableColumns: [
    { title: '拼音码', dataIndex: 'pyCode', width: 100, ellipsis: true },
    { title: '项目名称', dataIndex: 'itemName', width: 135,ellipsis: true },
    { title: '类别', dataIndex: 'itemType', width: 85, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 80, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 80, ellipsis: true },
    { title: '价格', dataIndex: 'price', width: 150, ellipsis: true },
  ],
  //医嘱情况-模板列表
  TemplateColumns: [
    { title: '组号', dataIndex: 'groupId', width: 60, ellipsis: true },
    { title: '临/长嘱', dataIndex: 'ftype', width: 70,ellipsis: true },
    { title: '类别', dataIndex: 'itemType', width: 70, ellipsis: true },
    { title: '名称', dataIndex: 'itemName', width: 80, ellipsis: true },
    { title: '首次用量', dataIndex: 'firstDosage', width: 90, ellipsis: true },
    { title: '每次用量', dataIndex: 'dosage', width: 90, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 70, ellipsis: true },
    { title: '用药频率', dataIndex: 'useTimes', width: 100, ellipsis: true },
    { title: '用药途径', dataIndex: 'useWays', width: 100, ellipsis: true },
    { title: '价格', dataIndex: 'price', width: 70, ellipsis: true },

  ],
  //用料管理
  materialSituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    { title: '处方号', dataIndex: 'recipelId',width: 130, ellipsis: true },
    { title: '药品', dataIndex: 'useTimes', width: 100, ellipsis: true},
    { title: '类型', dataIndex: 'mainDr', width: 100,ellipsis: true },
    { title: '规格', dataIndex: 'treatDr',width: 100, ellipsis: true },
    { title: '数量', dataIndex: 'beautyDr', width: 90, ellipsis: true },
    { title: '单位', dataIndex: 'circuitNurse', width: 90,ellipsis: true },
    { title: '用法', dataIndex: 'nurse', width: 90, ellipsis: true },
    { title: '用量/次', dataIndex: 'state1', width: 80, ellipsis: true },
    { title: '次数/天', dataIndex: 'state2', width: 80, ellipsis: true },
    { title: '天数', dataIndex: 'state3', width: 80, ellipsis: true }
  ],
  productColumns: [
    { title: '编码', dataIndex: 'code', width: 80, ellipsis: true},
    { title: '拼音码', dataIndex: 'pyCode', width: 80,ellipsis: true },
    { title: '产品名称', dataIndex: 'prdtName',width: 100, ellipsis: true },
    { title: '产品类别', dataIndex: 'tptName',width: 100, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 70, ellipsis: true },
    // { title: '备注', dataIndex: 'remark', width: 110,ellipsis: true },
  ],
}
module.exports={
  columns:columns
}